package com.canvasoft.servlets.messages;

public class MessageInfoMessage {

    private final MessageInfo messageInfo;

    public MessageInfoMessage(String from, String to, int message) {
        this.messageInfo = new MessageInfo(from, to, message);
    }

    public MessageInfo getMessageInfo() {
        return messageInfo;
    }

    public class MessageInfo {
        private final String from;
        private final String to;
        private final int message;

        public MessageInfo(String from, String to, int message) {
            this.from = from;
            this.to = to;
            this.message = message;
        }

        public String getFrom() {
            return from;
        }

        public String getTo() {
            return to;
        }

        public int getMessage() {
            return message;
        }
    }

}
